// User.h: interface for the CUser class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_USER_H__9EEC2D84_2935_4D5F_8337_C68658EAA820__INCLUDED_)
#define AFX_USER_H__9EEC2D84_2935_4D5F_8337_C68658EAA820__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "PageItem.h"

class CUser  : public CPageItem
{
public:
	CUser();
	CUser(ULONG ulIndex, const CString &strUserInfo);
	virtual ~CUser();
	CString m_strGroup;
	CString m_strUserName;
	CString m_strDesc;
	CString m_strSn;
	CString m_strSnBackup;
	CString m_strRights;
	class CPassword
	{
	// Interface
	public:
		virtual const CString GetSn();
	// Constructor
		CPassword();
	// Data
	public:
		UINT m_nID;
		enum EPasswordType
		{
			PWD_UNKOWN,
			PWD_STATICAL,
			PWD_OTP
		};
		EPasswordType m_type;
	} m_password;

protected:
	virtual void AnalyzeInfo(const CString &strUserInfo);
private:
	void AnalyzeUserInfo(const CString &strUserInfo);
};

#endif // !defined(AFX_USER_H__9EEC2D84_2935_4D5F_8337_C68658EAA820__INCLUDED_)
